<extend name="Public/common" />
<block name="body">
<div class="page">
  <div class="fixed-bar">
    <div class="item-title">
      <h3>会员管理</h3>
      <ul class="tab-base">
        <li><a href="{:U('index')}"><span>订单列表</span></a></li>
        	<li><a href="{:U('send')}"><span>排餐列表</span></a></li>
	        <li><a href="JavaScript:void(0);" class="current"><span>订单状态</span></a></li>
      </ul>
    </div>
  </div>
  <div class="fixed-empty"></div>
  <form id="form1" method="post" enctype="multipart/form-data" name="form1">
    <input type="hidden" name="id" value="{$goods['id']}" />
    <table class="table tb-type2">
      <tbody>
        <tr class="noborder">
          <td colspan="2" class="required"><label class="validation" for="order_sn">订单编号:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform">{$info['order_sn']}</td>
          <td class="vatop tips"></td>
        </tr>
        <tr>
          <td colspan="2" class="required"><label for="password">订单总金额:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform">{$info['order_amount']}</td>
           <td class="vatop tips"></td>
        </tr>
                
        <tr>
          <td colspan="2" class="required"><label for="password">需支付总金额:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform">{$info['pay_amount']}</td>
           <td class="vatop tips"></td>
        </tr>
        <tr class="noborder">
          <td colspan="2" class="required"><label for="pay_time">是否付款:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><eq name="info.pay_state" value="1">是 （付款时间：{$info['pay_time']|time_format}）<else />否</eq></td>
          <td class="vatop tips"></td>
        </tr>
        <tr class="noborder">
          <td colspan="2" class="required"><label for="pay_id">付款方式:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform">{$info['pay_code']}</td>
          <td class="vatop tips"></td>
        </tr>
        <tr>
          <td colspan="2" class="required"><label for="closed_reason">第三方支付平台交易号:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform">{$info['pay_sn']}</td>
          <td class="vatop tips"><span class="vatop rowform">支付宝等第三方支付平台交易号</span></td>
        </tr>

        <tr>
          <td colspan="2" class="required"><label for="goods_name">菜品名称:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform">{$goods['goods_name']}</td>
          <td class="vatop tips"><span class="vatop rowform">菜品名称</span></td>
        </tr>
        <tr>
          <td colspan="2" class="required"><label for="goods_name">数量:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform">{$goods['goods_num']}</td>
          <td class="vatop tips"><span class="vatop rowform">数量</span></td>
        </tr>
        <tr>
          <td colspan="2" class="required"><label for="store_id">商户名称:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform">{$store['store_name']}</td>
          <td class="vatop tips"><span class="vatop rowform">商户名称</span></td>
        </tr>

        <tr>
          <td colspan="2" class="required"><label for="area_id">区域名称:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform">{$area[$goods['area_id']]}</td>
          <td class="vatop tips"><span class="vatop rowform">区域名称</span></td>
        </tr>

        <tr>
          <td colspan="2" class="required"><label for="area_id">送餐日期:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform">{:date('Y-m-d', $goods['menu_date'])}</td>
          <td class="vatop tips"><span class="vatop rowform">送餐日期</span></td>
        </tr>

        <tr>
          <td colspan="2" class="required"><label>订单状态:</label></td>
        </tr>
        <tr class="noborder">
          <td class="vatop rowform"><ul>
            <li>
              <input type="radio" <eq name='goods.order_state' value='0'>checked="checked"</eq> value="0" name="order_state" id="order_state0">
              <label for="order_state0">已取消</label>
            </li>
            <li>
              <input type="radio" <eq name='goods.order_state' value='1'>checked="checked"</eq> value="1" name="order_state" id="order_state1">
              <label for="order_state1">未付款</label>
            </li>
            <li>
              <input type="radio" <eq name='goods.order_state' value='2'>checked="checked"</eq> value="2" name="order_state" id="order_state2">
              <label for="order_state2">已付款</label>
            </li>
            <li>
              <input type="radio" <eq name='goods.order_state' value='3'>checked="checked"</eq> value="3" name="order_state" id="order_state3">
              <label for="order_state3">已发货</label>
            </li>
            <li>
              <input type="radio" <eq name='goods.order_state' value='4'>checked="checked"</eq> value="4" name="order_state" id="order_state4">
              <label for="order_state4">已收货</label>
            </li>
          </ul></td>
          <td class="vatop tips"></td>
        </tr>

      </tbody>
      <tfoot>
        <tr class="tfoot">
          <td colspan="15" ><a href="JavaScript:void(0);" class="btn" id="submit"><span>提交</span></a></td>
        </tr>
      </tfoot>
    </table>
  </form>
</div>
<script type="text/javascript" src="__JS__/jquery-ui/jquery.ui.js"></script> 
<script type="text/javascript" src="__JS__/jquery-ui/i18n/zh-CN.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="__JS__/jquery-ui/themes/ui-lightness/jquery.ui.css"  />
<script type="text/javascript">
$(function(){
    $('#pay_time').datepicker({dateFormat: 'yy-mm-dd',maxDate: '{:date("Y-m-d")}'});
    $('#submit').click(function(){
    	if($("#form1").valid()){
        	if (confirm("操作提醒：\n确定更改状态吗？\n继续操作吗?")){
        	}else{
        		return false;
        	}
        	$('#form1').submit();
    	}
    });
});
</script> 
</block>